package com.realtyManage.springboot.Dao;

import com.realtyManage.springboot.Model.Do.Active;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ActiveRepository extends JpaRepository<Active,Integer>, JpaSpecificationExecutor<Active> {

    List<Active> findByUidAndArtId(int uid, int artId);

    List<Active> findByArtId(Integer activeId);

    int countByArtId(Integer artId); //统计数量
}
